package entity;

import java.io.Serializable;

public class Employee implements Serializable {
    private int id;
    private String name;
    private int age;
    private float gongzi;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public float getGongzi() {
        return gongzi;
    }

    public void setGongzi(float gongzi) {
        this.gongzi = gongzi;
    }

    public Employee(int id, String name, int age, float gongzi) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.gongzi = gongzi;
    }
    public Employee(String name) {
        this.name = name;
    }
    public Employee() {

    }
    public Employee(int age) {
        this.age = age;
    }
    public Employee(int age,int gongzi) {
        this.age = age;
        this.gongzi = gongzi;
    }
    @Override
    public String toString() {
        return "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", gongzi=" + gongzi+ " ";
    }
}
